package com.bk;

import list.DynamicArray;

public class Stack<E> extends DynamicArray<E> {

	public void push(E element) {
		insert(0, element);
	}

	public E pop() {
		E element = remove(0);
		return element;
	}

	public E top() {
		E element = get(0);
		return element;
	}

}
